package com.example.demo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Fyly
 * @since 2019-02-20
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户类型
     */
    @TableField("userType")
    private String userType;
    @TableField("openId")
    private String openId;
    /**
     * 令牌
     */
    @TableField("token")
    private String token;
    /**
     * 注册时间
     */
    @TableField("regTime")
    private Date regTime;
    /**
     * 最后登录时间
     */
    @TableField("visitTime")
    private Date visitTime;
    /**
     * 最后经度
     */
    @TableField("lon")
    private Float lon;
    /**
     * 最后纬度
     */
    @TableField("lat")
    private Float lat;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public Date getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Date visitTime) {
        this.visitTime = visitTime;
    }

    public Float getLon() {
        return lon;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public Float getLat() {
        return lat;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    @Override
    public String toString() {
        return "User{" +
        "id=" + id +
        ", userType=" + userType +
        ", openId=" + openId +
        ", token=" + token +
        ", regTime=" + regTime +
        ", visitTime=" + visitTime +
        ", lon=" + lon +
        ", lat=" + lat +
        "}";
    }
}
